package com.hotdog.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用system服务对日志信息进行入库操作
 *
 * @author 郭鲁政
 */
@FeignClient(name = "system", contextId = "sysTemLogInfoFeign")
public interface SysTemLogInfoFeign {
    /**
     * 远程调用system服务对日志信息进行入库操作
     *
     * @param username
     * @param resourcesAccessed
     */
    @Async
    @GetMapping("/log/insertLogInfo/{username}/{resourcesAccessed}")
    void saveLogInfo(@PathVariable("username") String username, @PathVariable("resourcesAccessed") String resourcesAccessed);
}
